<!--%import("filter/insert_opage.xml")-->
<!--#include("header.html")-->

<form action="./" method="post" onsubmit="return procFilter(this, insert_opage)" enctype="multipart/form-data">
<input type="hidden" name="opage" value="{$opage}" />
<input type="hidden" name="module_srl" value="{$module_srl}" />

    <table cellspacing="0" class="rowTable">
    <!--@if($logged_info->is_admin!='Y')-->
    <input type="hidden" name="mid" value="{$module_info->mid}" />
    <!--@else-->
    <tr class="row2">
        <th scope="row"><div>{$lang->mid}</div></th>
        <td colspan="3">
            <input type="text" name="mid" value="{$module_info->mid}" class="inputTypeText w200" />
            <p>{$lang->about_mid}</p>
        </td>
    </tr>
    <!--@end-->
    <tr class="row2">
        <th scope="row"><div>{$lang->module_category}</div></th>
        <td colspan="3">
            <select name="module_category_srl">
                <option value="0">{$lang->notuse}</option>
                <!--@foreach($module_category as $key => $val)-->
                <option value="{$key}" <!--@if($module_info->module_category_srl==$key)-->selected="selected"<!--@end-->>{$val->title}</option>
                <!--@end-->
            </select>
            <p>{$lang->about_module_category}</p>
        </td>
    </tr>
    <tr>
        <th scope="row"><div>{$lang->browser_title}</div></th>
        <td colspan="3">
            <input type="text" name="browser_title" value="{htmlspecialchars($module_info->browser_title)}"  class="inputTypeText w400" id="browser_title"/>
            <a href="{getUrl('','module','module','act','dispModuleAdminLangcode','target','browser_title')}" onclick="popopen(this.href);return false;" class="buttonSet buttonSetting"><span>{$lang->cmd_find_langcode}</span></a>
            <p>{$lang->about_browser_title}</p>
        </td>
    </tr>
    <tr class="row2">
        <th scope="row"><div>{$lang->layout}</div></th>
        <td colspan="3">
            <select name="layout_srl">
            <option value="0">{$lang->notuse}</option>
            <!--@foreach($layout_list as $key => $val)-->
            <option value="{$val->layout_srl}" <!--@if($module_info->layout_srl==$val->layout_srl)-->selected="selected"<!--@end-->>{$val->title} ({$val->layout})</option>
            <!--@end-->
            </select>
            <p>{$lang->about_layout}</p>
        </td>
    </tr>
	<tr>
	<th scope="row"><div>{$lang->mobile_layout}</div></th>
	<td>
	<select name="mlayout_srl">
	<option value="0">{$lang->notuse}</option>
	<!--@foreach($mlayout_list as $key => $val)-->
	<option value="{$val->layout_srl}" <!--@if($module_info->mlayout_srl==$val->layout_srl)-->selected="selected"<!--@end-->>{$val->title} ({$val->layout})</option>
	<!--@end-->
	</select>
	<p>{$lang->about_layout}</p>
	</td>
	</tr>


    <tr>
        <th scope="row"><div>{$lang->opage_caching_interval}</div></th>
        <td colspan="3">
            <input type="text" name="opage_caching_interval" value="{(int)$module_info->caching_interval}"  class="inputTypeText w40" /> {$lang->unit_min}
            <p>{$lang->about_opage_caching_interval}</p>
        </td>
    </tr>
    <tr class="row2">
        <th scope="row"><div>{$lang->opage_path}</div></th>
        <td colspan="3">
            <input type="text" name="opage_path" value="{htmlspecialchars($module_info->path)}"  class="inputTypeText w400" />
            <p>{$lang->about_opage_path}<b>{realpath("./")}</b></p>
        </td>
    </tr>
    <tr class="row">
        <th scope="row"><div>{$lang->opage_mobile_path}</div></th>
        <td colspan="3">
            <input type="text" name="opage_mpath" value="{htmlspecialchars($module_info->mpath)}"  class="inputTypeText w400" />
            <p>{$lang->about_opage_mobile_path}<b>{realpath("./")}</b></p>
        </td>
    </tr>
    <tr class="row2">
        <th colspan="4" class="button">
            <span class="button black strong"><input type="submit" value="{$lang->cmd_save}" accesskey="s" /></span>
            <!--@if($module == 'admin')-->
            <span class="button"><input type="button" value="{$lang->cmd_list}" onclick="location.href='./?module=admin&act=dispOpageAdminContent';return false;" /></span>
            <!--@else-->
            <span class="button"><input type="button" value="{$lang->cmd_back}" onclick="location.href=current_url.setQuery('module_srl','').setQuery('act','');return false;" /></span>
            <!--@end-->
        </th>
    </tr>
    </table>

</form>
